﻿<UserControl x:Class="CodeCounsel.SharePoint.RibbonDesigner.View.ScalePicker"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:v="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:t="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View.TypeConverters"
             mc:Ignorable="d">
    <UserControl.Resources>
        <t:ScaleCountToVisibilityConverter x:Key="scaleConverter" />
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Center" Text="Max" 
                       Grid.Row="0" Grid.Column="0" />
        <Slider Orientation="Vertical" 
                IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight"
                HorizontalAlignment="Center"
                IsDirectionReversed="True"
                Minimum="{Binding Minimum}" Maximum="{Binding Maximum}" Value="{Binding Current}"
                SmallChange="1" LargeChange="1" 
                Grid.Row="1" Grid.Column="0"/>
    </Grid>
</UserControl>
